﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Xml.Serialization;
using Editor.Utilities;

namespace Editor.Elements
{
    [XmlInclude(typeof(Subtopic))]
    public class Topic : Element
    {
        private List<Subtopic> subtopics = new List<Subtopic>();

        public Topic()
        {
        }

        public Topic(SDictionary<string> dictionary)
            : base(dictionary)
        {
        }

        public override IList ChildElements
        {
            get
            {
                return subtopics;
            }
            set
            {
                subtopics = value as List<Subtopic>;
            }
        }

        public override Element CreateChildElement(SDictionary<string> dictionary)
        {
            return new Subtopic(dictionary);
        }
    }
}
